import type { RuleListData, RuleListParams } from "@/types/car";
import { myRequest } from "@/utils/reuqest";

/**
 * 获取规则列表
 * @param { page, pageSize} params
 * @returns
 */
export const getRuleListAPI = (params: RuleListParams) => {
    return myRequest<RuleListData>('parking/rule/list', 'GET', params)
}

// 删除规则
export const deleteRuleAPI = (id: number) => {
    return myRequest(`/parking/rule/${id}`, 'DELETE')
}

// 添加规则